.class Lcom/opongo/blogapp/activities/AppPreferenceActivity$4;
.super Ljava/lang/Object;
.source "AppPreferenceActivity.java"

# interfaces
.implements Landroid/preference/Preference$OnPreferenceClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/opongo/blogapp/activities/AppPreferenceActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/opongo/blogapp/activities/AppPreferenceActivity;


# direct methods
.method constructor <init>(Lcom/opongo/blogapp/activities/AppPreferenceActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/opongo/blogapp/activities/AppPreferenceActivity$4;->this$0:Lcom/opongo/blogapp/activities/AppPreferenceActivity;

    .line 143
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onPreferenceClick(Landroid/preference/Preference;)Z
    .locals 9
    .parameter "preference"

    .prologue
    .line 146
    iget-object v6, p0, Lcom/opongo/blogapp/activities/AppPreferenceActivity$4;->this$0:Lcom/opongo/blogapp/activities/AppPreferenceActivity;

    invoke-virtual {v6}, Lcom/opongo/blogapp/activities/AppPreferenceActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    .line 147
    .local v0, context:Landroid/content/Context;
    iget-object v6, p0, Lcom/opongo/blogapp/activities/AppPreferenceActivity$4;->this$0:Lcom/opongo/blogapp/activities/AppPreferenceActivity;

    const-string v7, "BlogApp"

    const/4 v8, 0x0

    invoke-virtual {v0, v7, v8}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v7

    #setter for: Lcom/opongo/blogapp/activities/AppPreferenceActivity;->settings:Landroid/content/SharedPreferences;
    invoke-static {v6, v7}, Lcom/opongo/blogapp/activities/AppPreferenceActivity;->access$7(Lcom/opongo/blogapp/activities/AppPreferenceActivity;Landroid/content/SharedPreferences;)V

    .line 149
    iget-object v6, p0, Lcom/opongo/blogapp/activities/AppPreferenceActivity$4;->this$0:Lcom/opongo/blogapp/activities/AppPreferenceActivity;

    #getter for: Lcom/opongo/blogapp/activities/AppPreferenceActivity;->settings:Landroid/content/SharedPreferences;
    invoke-static {v6}, Lcom/opongo/blogapp/activities/AppPreferenceActivity;->access$8(Lcom/opongo/blogapp/activities/AppPreferenceActivity;)Landroid/content/SharedPreferences;

    move-result-object v6

    const-string v7, "blog_details"

    const-string v8, "Error"

    invoke-interface {v6, v7, v8}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 151
    .local v1, detailString:Ljava/lang/String;
    const-string v3, "Error"

    .line 154
    .local v3, impressum_html:Ljava/lang/String;
    :try_start_0
    new-instance v5, Lorg/json/JSONObject;

    invoke-direct {v5, v1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 155
    .local v5, json:Lorg/json/JSONObject;
    new-instance v4, Ljava/lang/String;

    const-string v6, "impressum_html"

    invoke-virtual {v5, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v4, v6}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .end local v3           #impressum_html:Ljava/lang/String;
    .local v4, impressum_html:Ljava/lang/String;
    move-object v3, v4

    .line 161
    .end local v4           #impressum_html:Ljava/lang/String;
    .end local v5           #json:Lorg/json/JSONObject;
    .restart local v3       #impressum_html:Ljava/lang/String;
    :goto_0
    iget-object v6, p0, Lcom/opongo/blogapp/activities/AppPreferenceActivity$4;->this$0:Lcom/opongo/blogapp/activities/AppPreferenceActivity;

    invoke-virtual {v6, v3}, Lcom/opongo/blogapp/activities/AppPreferenceActivity;->onclickShowText(Ljava/lang/String;)V

    .line 162
    const/4 v6, 0x1

    return v6

    .line 156
    :catch_0
    move-exception v2

    .line 158
    .local v2, e:Lorg/json/JSONException;
    invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method
